package com.aiti.lulian.entity.crad.promotion;

import com.aiti.lulian.annotates.AddGroup;
import com.aiti.lulian.annotates.EditGroup;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("card_leave_information")
public class CardLeaveInformation {

    @TableId(type = IdType.ASSIGN_UUID)
    @NotBlank(message = "ID不能为空",groups = {EditGroup.class})
    private String baseId;

    @NotBlank(message = "公司名称不能为空",groups = {AddGroup.class})
    private String companyName;

    @NotBlank(message = "联系人不能为空",groups = {AddGroup.class})
    private String linkMan;

    @NotBlank(message = "联系手机号不能为空",groups = {AddGroup.class})
    private String linkPhone;

    private String vipAccount;

    private String status;

    private String descContent;

    private Date baseCreateTime;

    private BigDecimal payAmount;

    private Date payTime;

    private String payVersion;

//    @NotBlank(message = "推广码不能为空",groups = {AddGroup.class})
    private String promotionCode;

    private String payOperUserId;

    /**
     * 来源（'1'：原提交留资，'2'：资质认定提交留资）
     */
    private String source;

    /**
     * 创建者
     */
    private String creator;

    /**
     * 名片ID
     */
    private String cardId;
}
